package ooday02;

public class Doctor extends Person {
    String position;

    Doctor() {

    }

    Doctor(String name, int age, String address, String position) {
//        this.name = name;
//        this.age = age;
//        this.address = address;
        super(name, age, address);
        this.position = position;
    }

    void sayHi() {
        System.out.println("大叫好，我是" + name + "，今年" + age + "岁了，我的家乡是" + address
                + ",我的职位是" + position);
    }

    void work() {
        System.out.println(name + "正在进行肛肠手术……");
    }

}
